package fun.flyee.android.pengshan;

import fun.flyee.pengshan.social.BuildConfig;

public class Constant {

    //    public static final String WEB_URL="http://192.168.31.133:8080/";
    public static final String WEB_URL = "local";

    public static final String PROD_API_URL = "https://www.psshzlzx.gov.cn";
    public static final String TEST_API_URL = "http://123.60.184.130";

    public static final String PROD_VIDEO_URL = "psshzlzx.gov.cn";
    public static final String TEST_VIDEO_URL = "hcvs.tpddns.cn";

    public static final int PROD_VIDEO_PORT = 9901;
    public static final int TEST_VIDEO_PORT = 9901;
    public static final String VIDEO_USER = "tb21";
    public static final String VIDEO_PWD = "123";

    public final static int INTENT_REQUEST_INIT_PERMISSION = 1000;
    public final static int INTENT_REQUEST_CALL_PERMISSION = 1001;
    public final static int INTENT_REQUEST_INSTALL_PERMISSION = 1002;

    public final static int INTENT_REQUEST_PHOTO_CHOOSE = 1002;
    public final static int INTENT_REQUEST_LOCATION = 1003;
    public final static int INTENT_REQUEST_VIDEO_CHOOSE = 1004;
    public final static int INTENT_REQUEST_RESULT = 1005;
    public final static int INTENT_REQUEST_UPLOAD = 1006;
    public final static int INTENT_REQUEST_SCAN_QRCODE = 1007;

    public static String apiUrl() {
        return BuildConfig.DEBUG ? TEST_API_URL : PROD_API_URL;
//        return PROD_API_URL;
    }

    public static String videoUrl() {
        return BuildConfig.DEBUG ? TEST_VIDEO_URL : PROD_VIDEO_URL;
//        return PROD_VIDEO_URL;
//        return TEST_VIDEO_URL;
    }

    public static int videoPort() {
        return BuildConfig.DEBUG ? TEST_VIDEO_PORT : PROD_VIDEO_PORT;
//        return PROD_VIDEO_PORT;
//        return TEST_VIDEO_PORT;
    }
}
